package com.example.mapp;

import com.example.entity.SystemMark;
import com.example.mapp.buildSql.SysUserMappSql;
import com.example.mapp.buildSql.SystemMarkMappSql;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.UpdateProvider;

/**
 * Created by youkun on 2018/3/16.
 * 积分
 */
@Mapper
public interface SystemMarkMapp {

    @Select( " select * from system_mark where party_id=#{id} " )
    SystemMark findSystemMark(String id);

    @Insert( " insert into system_mark (organ_info_mark,system_id,party_id,insert_user_mark,insert_maintenance_mark) values " +
            "(#{organInfoMark},#{systemId},#{partyId},#{insertUserMark},#{insertMaintenanceMark})" )
    int insert(SystemMark systemMark);


    @UpdateProvider(type = SystemMarkMappSql.class, method = "update")
    int update(SystemMark systemMark);
}
